﻿using Abp.Application.Services.Dto;
using shenghua.Commodity.Commodities;
using shenghua.Commodity.Commodities.Dto;
using shenghua.Order.Orders.Median;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Member.ShoppingCart.Dto
{
    public class ShoppingCartCommodityDto: CommodityCollectionItemDto
    {
        public DateTime CreationTime { get; set; }

        public ShoppingCartCommodityDto(
            ShoppingCartCommodity shoppingCartCommodity, 
            CommodityCollectionItem commodityCollectionItem)
            : base(commodityCollectionItem)
        {
            Id = shoppingCartCommodity.Id;
            CreationTime = shoppingCartCommodity.CreationTime;
        }
    }
}
